Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODCanvas


GetQDPort

Mac OS

The GetQDPort method returns the QuickDraw graphics-port drawing structure for this canvas.

GrafPtr GetQDPort ();
return value
A pointer to a QuickDraw graphics port.
DISCUSSION
If you are using QuickDraw for imaging, you call this method in your part's Draw method or whenever you need to draw anything into a facet.

EXCEPTIONS
kODErrInvalidGraphicsSystem
This implementation of OpenDoc does not support QuickDraw, QuickDraw is not installed or available, or this canvas has no QuickDraw drawing structure.
SEE ALSO
The ODCanvas::GetGXViewport method (page 69).
"The Draw Method of Your Part Editor" on page 158 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help